//
//  EFAMaintenanceTCell.h
//  efairy
//
//  Created by XiangDongMBP on 2017/9/5.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class EFAMaintenanceTCell;
@protocol EFAMaintenanceTCellDelegate <NSObject>
@optional
- (void)maintenanceTCell:(EFAMaintenanceTCell *)cell imgViewTapped:(NSArray<UIImageView *> *)imgViewArray indexPath:(NSIndexPath *)cIndexPath;
@end

@class EFAMtcListItem;
@class EFAAlarmListItem;
@interface EFAMaintenanceTCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *portraitImgView;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *deviceNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *stateLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectionViewHeight;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@property (weak, nonatomic) EFAMtcListItem *item;
@property (weak, nonatomic) EFAAlarmListItem *alarmItem;
@property (weak, nonatomic) id<EFAMaintenanceTCellDelegate>delegate;

- (void)configViewWithMtcListItem:(EFAMtcListItem *)item;
@end


@interface EFAMaintenanceTCell (AlarmRelative)
- (void)configViewWithAlarmListItem:(EFAAlarmListItem *)item;
@end
